package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongLwPointRowMapper implements RowMapper<NanDongLwPoint> {
    @Override
    public NanDongLwPoint mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongLwPoint nd = new NanDongLwPoint();
        nd.setId(resultSet.getInt("id"));
        nd.setType(resultSet.getString("type"));
        nd.setAdress(resultSet.getString("adress"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;

    }
}
